package fr.cephb.locustree.loaders;

import java.util.HashMap;
import java.util.Map;

import fr.cephb.locustree.MappedObject;

public class UCSCCytoBandsLoader
	extends AbstractLTStreamLoader
	{
	
	@Override
	protected boolean make(String[] token)
		{
		this.chromosome=token[0];
		this.mappedObject=new MappedObject(
					token[0].substring(3)+token[3],
					token[0].substring(3)+token[3],
					Integer.parseInt(token[1]),
					Integer.parseInt(token[2])
					);
		Map<String,Object> json= new HashMap<String,Object>();
		json.put("gieStain", token[4]);
		this.mappedObject.setJSON(json);
		this.keywords.add(this.mappedObject.getName());
		return true;
		}
	}
